#include <stdio.h>
int main(int n){return printf("%d",n-1,scanf("%d",&n)),0;}
